/**业务管理-销售列表API**/
import obj from '@/utils/request'
let {request,baseURL} = obj

//分页查询单品销售
export function getSaleOrder(params) {
  return request({
    url: '/saleOrder',
    method: 'get',
    params
  })
}
//添加单品销售
export function addSaleOrder(data) {
  return request({
    url: '/saleOrder',
    method: 'post',
    data
  })
}
//修改单品销售
export function modSaleOrder(data) {
  return request({
    url: '/saleOrder',
    method: 'put',
    data
  })
}
//修改单品销售
export function delSaleOrder(ids) {
  return request({
    url: '/saleOrder',
    method: 'delete',
    data:ids
  })
}
//生成单品销售单号
export function getSaleOrderCode() {
  return request({
    url: '/saleOrder/code',
    method: 'get',
  })
}
//生成单品销售单号
export function getSaleOrderById(id) {
  return request({
    url: '/saleOrder/'+id,
    method: 'get',
  })
}
//查询商品
export function getSaleOrderGoods(params) {
  return request({
    url: '/saleOrder/goods',
    method: 'get',
    params
  })
}
